Skip to content

More lifting tweaks#156132

Merged
rust-bors[bot] merged 3 commits into
rust-lang:mainfrom
nnethercote:more-lifting-tweaks
May 4, 2026
Merged

More lifting tweaks#156132
rust-bors[bot] merged 3 commits into
rust-lang:mainfrom
nnethercote:more-lifting-tweaks

Conversation

@nnethercote

Copy link
Copy Markdown
Contributor

Details in individual commits.

r? @oli-obk

Several printing functions (e.g. `short_string`) take a liftable
parameter. This commit changes the call sites to do the lifting instead.
This simplifies the type signatures and puts the `lift` calls inside
`tls::with` calls which is where they usually appear, and the minor cost
of having more `lift` call sites.
This doesn't match any of the other uses.
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 4, 2026

@oli-obk oli-obk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rust-bors

rust-bors Bot commented May 4, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 2cf4884 has been approved by oli-obk

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 4, 2026
rust-bors Bot pushed a commit that referenced this pull request May 4, 2026
Rollup of 3 pull requests

Successful merges:

 - #156120 (Regression test for trait-system-refactor#7)
 - #156125 (refactor using ExprParenthesesNeeded where possible)
 - #156132 (More lifting tweaks)
rust-timer added a commit that referenced this pull request May 4, 2026
Rollup merge of #156132 - nnethercote:more-lifting-tweaks, r=oli-obk

More lifting tweaks

Details in individual commits.

r? @oli-obk
@rust-bors rust-bors Bot merged commit 037e2b0 into rust-lang:main May 4, 2026
11 checks passed
@rustbot rustbot added this to the 1.97.0 milestone May 4, 2026
@nnethercote nnethercote deleted the more-lifting-tweaks branch May 5, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants